import request from "../request.js"

//关键词和搜索历史接口
function search(data){
    return request({
        url:'/search/indexaction',
        data
    })
}
//搜索提示接口
function helperaction(data){
    return request({
        url:'/search/helperaction',
        data
    })
}
//搜索关键词添加到数据库
function addhistoryaction(data){
    return request({
        url:'/search/addhistoryaction',
        data,
        method:'post'
    })
}
//清空搜索历史
function clearhistoryAction(data){
    return request({
        url:'/search/clearhistoryAction',
        data,
        method:'post'
    })
}
export{
    search,helperaction,addhistoryaction,clearhistoryAction
}